import Layout from '@/views/layout/Layout'

const miniprogram = {
  path: '/miniprogram',
  component: Layout,
  meta: { title: '小程序角色管理', roles: ['1'], icon: 'guanli' },
  children: [
    {
      path: '',
      hidden: true,
      component: () => import('@/views/miniprogram/index'),
      meta: {title: '小程序角色管理', icon: 'table', fullPath: '/miniprogram/user'},
      children: [
        {
          path: '',
          name: 'miniprogram.user.list',
          hidden: true,
          component: () => import('@/views/components/list_card'),
          meta: { title: '小程序角色管理', title1: '列表', icon: 'guanli' }
        },
        {
          path: 'create',
          name: 'miniprogram.user.create',
          hidden: true,
          component: () => import('@/views/miniprogram/components/create_card'),
          meta: { title1: '创建', icon: 'tree' }
        },
        {
          path: 'edit',
          name: 'miniprogram.user.edit',
          hidden: true,
          component: () => import('@/views/miniprogram/components/edit_card'),
          meta: { title1: '编辑', icon: 'tree' }
        }
      ]
    }

  ]
}

export default miniprogram
